package com.yugao.fintech.antelope.infra.group.assembly;

import com.yugao.fintech.antelope.infra.module.group.model.entity.DataGroup;
import com.yugao.fintech.antelope.infra.module.group.model.rqrs.DataGroupResp;
import com.yugao.fintech.antelope.infra.module.group.model.rqrs.DataGroupSaveReq;
import com.yugao.fintech.antelope.infra.module.group.model.rqrs.DataGroupTreeResp;
import com.yugao.fintech.antelope.infra.module.group.model.rqrs.DataGroupUpdateReq;
import org.mapstruct.Mapper;

/**
 * 通用数据组
 *

 */
@Mapper(componentModel = "spring")
public interface DataGroupAssembly {
  DataGroupResp toDataGroupResp(DataGroup source);
  DataGroupResp toDataGroupResp(DataGroupTreeResp source);

  DataGroupTreeResp toDataGroupTreeResp(DataGroup source);

  DataGroup toDataGroup(DataGroupSaveReq source);
  
  DataGroup toDataGroup(DataGroupUpdateReq source);
}
